//
//  MacroDefinitionheader.h
//  DangDiTong
//
//  Created by Sunny on 17/2/15.
//  Copyright © 2017年 Sunny. All rights reserved.
//

#ifndef MacroDefinitionheader_h
#define MacroDefinitionheader_h

/**屏幕*/
#define kWidth [UIScreen mainScreen].bounds.size.width
#define kHeight [UIScreen mainScreen].bounds.size.height
/**
 像素系数
 */
#define kPIX (kWidth/750.0)


#define iPhone4 kHeight<568
#define iPhone5 kHeight>=568&&kHeight<667
#define iPhone6 kHeight>=667&&kHeight<736
#define iPhone6p kHeight>=736

/**颜色*/
#define kColor(R, G, B, A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]
#define KCOLOR_WITH_HEX(hexValue,A) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16)) / 255.0 green:((float)((hexValue & 0xFF00) >> 8)) / 255.0 blue:((float)(hexValue & 0xFF)) / 255.0 alpha:A]
#define isIOS9 ([[UIDevice currentDevice].systemVersion intValue]>=9?YES:NO)
#define isIOS10 ([[UIDevice currentDevice].systemVersion intValue]>=10?YES:NO)

#endif /* MacroDefinitionheader_h */
